package com.itmuch.contentcenter.feignclient.fallback;

import com.itmuch.contentcenter.domain.dto.user.UserDto;
import com.itmuch.contentcenter.feignclient.UserCenterFeignClient;
import org.springframework.stereotype.Component;

/**
 * @author caiqian
 * @date 2021/5/8 14:52
 */
@Component
public class UserCenterFeignClientFallback implements UserCenterFeignClient {

  @Override
  public UserDto findById(Integer id) {
    UserDto userDto = new UserDto();
    userDto.setWxNickname("default user!");
    return userDto;
  }
}
